﻿using D.Wx.Dtos;
using D.Wx.Entities;

namespace D.Wx.IRepository
{
    public interface ISysWxUserRepository
    {
        /// <summary>
        /// 添加一条数据
        /// </summary>
        /// <returns></returns>
        Task<int> Add(SysWxUserEntity model);

        /// <summary>
        /// 删除多条数据
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> Delete(List<string> ids);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pageQuery"></param>
        /// <returns></returns>
        Task<PageModel<SysWxUserEntityOutput>> QueryPage(SysWxUserEntityQuery pageQuery);

        /// <summary>
        /// 根据open id获取管理员ID
        /// </summary>
        /// <param name="openId"></param>
        /// <returns></returns>
        Task<SysWxUserEntity> Get(string openId);
    }
}
